package main

import "fmt"

func main() {
	// write method 1
	for i := 1; i <= 10; i++ {
		fmt.Print(i, " ")
	}
	fmt.Println()

	// write method 2
	// for ; i<=10 ;
	i := 1
	for i <= 10 {
		fmt.Print(i, " ")
		i++
	}
	fmt.Println()

	i = 1
	// write method 3
	// for ;;;
	for {
		if i > 10 {
			break
		}
		fmt.Print(i, " ")
		i++
	}
	fmt.Println()
	fmt.Println("test")
}
